<template>
	<view class='custom-search' :style="{'background-color':bgColor}">
		<!-- 搜索框 -->
		<view class="custom-search-box" @click="handlerEvent">
			<uni-icons type="search" size="24" class='inco'></uni-icons>
			<text class="placeholder">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"custom_search",
		data() {
			return {
				
			};
		},
		props:{
			bgColor:{
				type:String,
				default:"#c00000"
			}
		},
		methods:{
			handlerEvent(){
				uni.navigateTo({
					url:'../../fenbao_one/search/search'
				}),
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
	
	.custom-search{
		width: 100%;
		height: 100rpx;
		background-color: #C00000;
		display: flex;
		justify-content: center;
		align-items: center;
		
		.custom-search-box {
			width: 94%;
			height: 72rpx;
			// line-height: 72rpx;
			background-color: #FFFFFF;
			// text-align: center;
			border-radius: 20px;
			display: flex;
			justify-content: center;
			align-items: center;
			
			.placeholder{
				font-size: 34rpx;
				margin-left: 10rpx;
			}
		}
	}
</style>
